﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {  
        $.ajax({
             //url: 'http://localhost:8090/Z_web/json01',
            url: 'http://localhost:8080/WEBPRO_18/json01',
           // url:'http://172.31.55.100:8080/Z_web/json01',
             type: 'GET',
             dataType: 'json',
             timeout: 1000,
             cache: false,
             beforeSend: LoadFunction, //加载执行方法  
             error: erryFunction,  //错误执行方法  
             success: succFunction //成功执行方法  
         })
         function LoadFunction() {
             $("#list").html('加载中...');
         }
         function erryFunction() {
        	 alert("bad");
         }
         function succFunction(tt) {
        	 alert("success");
             var json = eval(tt); //数组       
           $.each(json, function (index, item) {
                 //循环获取数据  
                 var name = json[index].Name;
                 var idnumber = json[index].IdNumber;
                 var Address = json[index].Address;
                 $("#list").html($("#list").html() + "<br>" + name + " - " + idnumber + " - " + Address ); 
                 
            });
             
      };
     });
     

    </script>
</head>
<body>
    <ul id="list">
    sssssss
    </ul>
</body>
</html>